package com.ticket.system.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@ApiModel(description = "忘记密码数据结构")
public class ForgetPasswordVO {
    /** 用户id */
    @ApiModelProperty(name = "userId",value = "用户id",dataType = "Long")
    private Long userId;
    /** 手机号 */
    @ApiModelProperty(name = "phone",value = "手机号",dataType = "String")
    @NotBlank(message="手机号不可为空!")
    @Length(min = 11, max = 11, message = "手机号不正确")
    private String phone;
    @ApiModelProperty(name = "code",value = "验证码",dataType = "String")
    @NotBlank(message="验证码不可为空!")
    @Length(min = 4, max = 6, message = "验证码不正确")
    private String code;
    /** 原密码 */
    @ApiModelProperty(name = "password",value = "新密码",dataType = "String")
    @NotBlank(message="密码不可为空!")
    @Length(min = 8, max = 20, message = "密码不正确")
    private String password;

    @ApiModelProperty(name = "rePassword",value = "确认密码",dataType = "String")
    @NotBlank(message="确认密码不可为空!")
    @Length(min = 8, max = 20, message = "确认密码不正确")
    private String rePassword;

    public String getRePassword() {
        return rePassword;
    }

    public void setRePassword(String rePassword) {
        this.rePassword = rePassword;
    }


    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
